package com.edu.lwh;

import cn.hutool.jwt.Claims;
import com.edu.lwh.pojo.LoginDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="userservice",url = "http://127.0.0.1:8881")
public interface UserFeign {

    @PostMapping("/user/login")
    public String login(@RequestBody LoginDto loginDto);


    @GetMapping("/user/parse")
    public Claims parseJwt(String token);

}
